package ProcessControl;

import java.util.Scanner;

public class Demo05 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入'hello'");
        //s一旦定义就开始接收用户输入的数据
        String s = scanner.nextLine();

        if (s.equals("hello")){
            System.out.println(s);

        }else {
            System.out.println("请输入hello");
        }
    }
}
